#ifndef CGWIDGET_H
#define CGWIDGET_H

#include <QtOpenGL/QtOpenGL>

class CGWidget : public QGLWidget
{
	Q_OBJECT

public:
	CGWidget(QWidget *parent = 0);
	~CGWidget();

protected:
	void initializeGL();
	void resizeGL(int w, int h );
	void paintGL();

private:

	void drawTriangle();
	void drawCube();
	void initializeCube(GLfloat v[8][3]);
};

#endif // CGWIDGET_H
